//package com.ruoyi.web.controller.system;
//
//import java.util.List;
//import javax.servlet.http.HttpServletResponse;
//
//import com.ruoyi.system.domain.Department;
//import org.springframework.security.access.prepost.PreAuthorize;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.web.bind.annotation.GetMapping;
//import org.springframework.web.bind.annotation.PostMapping;
//import org.springframework.web.bind.annotation.PutMapping;
//import org.springframework.web.bind.annotation.DeleteMapping;
//import org.springframework.web.bind.annotation.PathVariable;
//import org.springframework.web.bind.annotation.RequestBody;
//import org.springframework.web.bind.annotation.RequestMapping;
//import org.springframework.web.bind.annotation.RestController;
//import com.ruoyi.common.annotation.Log;
//import com.ruoyi.common.core.controller.BaseController;
//import com.ruoyi.common.core.domain.AjaxResult;
//import com.ruoyi.common.enums.BusinessType;
//import com.ruoyi.system.domain.CommounityCharge;
//import com.ruoyi.system.service.ICommounityChargeService;
//import com.ruoyi.common.utils.poi.ExcelUtil;
//import com.ruoyi.common.core.page.TableDataInfo;
//
///**
// * chargeController
// *
// * @author wanglong
// * @date 2024-03-24
// */
//@RestController
//@RequestMapping("/system/charge")
//public class CommounityChargeController extends BaseController
//{
//    @Autowired
//    private ICommounityChargeService commounityChargeService;
//
//
//
//    /**
//     * 查询charge列表
//     */
//    @PreAuthorize("@ss.hasPermi('system:charge:list')")
//    @GetMapping("/list")
//    public TableDataInfo list(CommounityCharge commounityCharge)
//    {
//        startPage();
//        List<CommounityCharge> list = commounityChargeService.selectCommounityChargeList(commounityCharge);
//        return getDataTable(list);
//    }
//
//    /**
//     * 导出charge列表
//     */
//    @PreAuthorize("@ss.hasPermi('system:charge:export')")
//    @Log(title = "charge", businessType = BusinessType.EXPORT)
//    @PostMapping("/export")
//    public void export(HttpServletResponse response, CommounityCharge commounityCharge)
//    {
//        List<CommounityCharge> list = commounityChargeService.selectCommounityChargeList(commounityCharge);
//        ExcelUtil<CommounityCharge> util = new ExcelUtil<CommounityCharge>(CommounityCharge.class);
//        util.exportExcel(response, list, "charge数据");
//    }
//
//    /**
//     * 获取charge详细信息
//     */
//    @PreAuthorize("@ss.hasPermi('system:charge:query')")
//    @GetMapping(value = "/{chargeId}")
//    public AjaxResult getInfo(@PathVariable("chargeId") Long chargeId)
//    {
//        return success(commounityChargeService.selectCommounityChargeByChargeId(chargeId));
//    }
//
//    /**
//     * 新增charge
//     */
//    @PreAuthorize("@ss.hasPermi('system:charge:add')")
//    @Log(title = "charge", businessType = BusinessType.INSERT)
//    @PostMapping
//    public AjaxResult add(@RequestBody CommounityCharge commounityCharge)
//    {
//        return toAjax(commounityChargeService.insertCommounityCharge(commounityCharge));
//    }
//
//    /**
//     * 修改charge
//     */
//    @PreAuthorize("@ss.hasPermi('system:charge:edit')")
//    @Log(title = "charge", businessType = BusinessType.UPDATE)
//    @PutMapping
//    public AjaxResult edit(@RequestBody CommounityCharge commounityCharge)
//    {
//        return toAjax(commounityChargeService.updateCommounityCharge(commounityCharge));
//    }
//
//    /**
//     * 删除charge
//     */
//    @PreAuthorize("@ss.hasPermi('system:charge:remove')")
//    @Log(title = "charge", businessType = BusinessType.DELETE)
//	@DeleteMapping("/{chargeIds}")
//    public AjaxResult remove(@PathVariable Long[] chargeIds)
//    {
//        return toAjax(commounityChargeService.deleteCommounityChargeByChargeIds(chargeIds));
//    }
//}
